import request from '@/utils/request'

// 查询问题信息列表
export function listIssue(query) {
  return request({
    url: '/system/issue/list',
    method: 'get',
    params: query
  })
}

// 查询问题信息详细
export function getIssue(issueId) {
  return request({
    url: '/system/issue/' + issueId,
    method: 'get'
  })
}

// 新增问题信息
export function addIssue(data) {
  return request({
    url: '/system/issue',
    method: 'post',
    data: data
  })
}

// 修改问题信息
export function updateIssue(data) {
  return request({
    url: '/system/issue',
    method: 'put',
    data: data
  })
}

// 删除问题信息
export function delIssue(issueId) {
  return request({
    url: '/system/issue/' + issueId,
    method: 'delete'
  })
}

export function getFeedBackByIssueId(issueId) {
  return request({
    url: '/system/issue/getFeedBackByIssueId/' + issueId,
    method: 'get'
  })
}
